﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="adminAdmin.aspx.cs" Inherits="财会系.Admin.adminAdmin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员管理界面</title>
    <link type="text/css" href="../../css/AdminCss.css" rel="stylesheet" />
    <script type="text/javascript" src="../../js/AdminJs.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Div_Row">
            <h2>管理：管理员信息</h2>
        </div>
        <div class="Div_Margin_top_10">
            <asp:GridView ID="gvAdminShow" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#222222" BorderStyle="None" BorderWidth="1px" CellPadding="4" AllowPaging="True"
            PageSize="5" OnPageIndexChanging="gvAdminShow_PageIndexChanging" OnRowDataBound="gvAdminShow_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="管理员账号">
                    <ItemTemplate>
                        <div class="Div_Width_short Div_Height_Short padding_5 Size_19 center Color_black">
                            <%#Eval("Acc") %>
                            <asp:Label ID="lbladminId" runat="server" Text='<%#Eval("Id") %>' Visible="false"></asp:Label>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="管理员昵称">
                    <ItemTemplate>
                        <div class="Div_Width_mid Div_Height_Short padding_5 Size_19 center Color_black">
                            <%#Eval("Name") %>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="选择删除">
                    <ItemTemplate>
                        <div class="Div_Width_short Div_Height_Short padding_5 Size_19 center Color_black">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="编辑">
                    <ItemTemplate>
                        <div class="Div_Width_short Div_Height_Short padding_5 Size_19 center Color_black A_C_B">
                            <a href='AdminRevise.aspx?id=<%#Eval("Id") %>'>编辑</a>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#222222" Font-Bold="True" ForeColor="#ffffff" />
            <PagerStyle BackColor="#222222" ForeColor="#ffffff" HorizontalAlign="Right" />
            <PagerTemplate>
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="labelCurrebrPage" runat="server" Font-Size="Small">当前页：<%#((GridView)Container.NamingContainer).PageIndex+1 %></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="labelPageCount" runat="server" Font-Size="Small">总页数：<%#((GridView)Container.NamingContainer).PageCount %></asp:Label>
                        </td>
                        <td>
                            <asp:LinkButton ID="linkButtonFirstPage" CssClass="lbtn_Css Color_White" runat="server" CommandArgument="First"
                                Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=0 %>" CommandName="Page">首页</asp:LinkButton>
                        </td>
                        <td>
                            <asp:LinkButton ID="linkButton1" CssClass="lbtn_Css Color_White" runat="server" CommandArgument="Prev"
                                CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=0 %>">上一页</asp:LinkButton>
                        </td>
                        <td>
                            <asp:LinkButton ID="linkButtonNextPage" CssClass="lbtn_Css Color_White" runat="server" CommandArgument="Next"
                                CommandName="Page" Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=((GridView)Container.NamingContainer).PageCount-1 %>">下一页</asp:LinkButton>
                        </td>
                        <td>
                            <asp:LinkButton ID="linkButtonLastPage" CssClass="lbtn_Css Color_White" runat="server" CommandArgument="Last"
                                Enabled="<%#((GridView)Container.NamingContainer).PageIndex!=((GridView)Container.NamingContainer).PageCount-1 %>"
                                CommandName="Page">尾页</asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </PagerTemplate>
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
        </div>
        <div class="Small_Features_short">
            <asp:LinkButton ID="lbtnDel" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnDel_Click">删除</asp:LinkButton>
            <asp:LinkButton ID="lbtnReverse" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnReverse_Click">反选</asp:LinkButton>
            <asp:LinkButton ID="lbtnSelectAll" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnSelectAll_Click">全选</asp:LinkButton>
            <asp:LinkButton ID="lbtnCancel" CssClass="lbtn_Css Color_black" runat="server" OnClick="lbtnCancel_Click">取消</asp:LinkButton>
        </div>
    </form>
</body>
</html>
